package com.weilive.api.dao.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import com.weilive.api.dao.model.ReportUser;

public interface ReportUserMapper {
    int deleteByPrimaryKey(Long reportUserId);

    int insert(ReportUser record);

    int insertSelective(ReportUser record);

    ReportUser selectByPrimaryKey(Long reportUserId);

    int updateByPrimaryKeySelective(ReportUser record);

    int updateByPrimaryKey(ReportUser record);
    
    @Select("select * from report_user where from_user_id = #{fromUserId} and reporter_user_id = #{reportUserId}")
    @ResultMap("com.weilive.api.dao.mapper.ReportUserMapper.BaseResultMap")
	ReportUser selectReportUser(@Param("fromUserId") long fromUserId, @Param("reportUserId") long reportUserId);
}